home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
PASCAL
/
0407.ZIP
/
SPELL12.ARC
/
SPELL.DOC
< prev
next >
Wrap
Text File
|
1986-07-28
|
11KB
|
216 lines
SpellCheck Public Domain Spelling Checker (c) 1986 by Frank LaRosa
-----------------------------------------------------------------------------
SHAREWARE NOTICE: This program is distributed via the Shareware system. If
you find this program useful, please register your copy by sending in the
shareware registration fee as outlined below. Even if you don't register,
please share this program with others.
-----------------------------------------------------------------------------
SpellCheck is a spelling checker for the IBM-PC and compatables.
The major features of this program are as follows:
* Checks text or document files from most word processors, as well as
standard ASCII text files.
* Shows misspellings on screen, in context, with option to add to dictionary.
* Maintains main plus alternate dictionaries.
* Optionally prints error report on printer or file.
* Allows manual update of dictionaries (add & delete words).
* Menu driven operation
Installation Instructions
The SpellCheck package consists of the following files:
SPELL.EXE The SpellCheck program
SPELL.CTL A small "control" file
MAIN.DCT The main dictionary file
SPELL.DOC This documentation file
You will need all four of these files in order to use the system. If any files
are missing, you can obtain the entire package by following the directions
under "Shareware Registration".
Floppy Disk Installation
Format a clean disk (double sided, 360K capacity) to receive the system. Next,
copy the files SPELL.EXE, SPELL.CTL and MAIN.DCT onto the new disk. Label this
disk as your working copy, and DO NOT copy any other files onto it. The Spell-
Check dictionary file is designed to expand to a size of approx. 310K, and
thus will require nearly all of the space on a 360K disk. Because of the
hashcode algorthms used to store words, the dictionary will expand quickly to
its full size; however, this does not mean the dictionary is "full" and cannot
accept new words. The actual capacity of each dictionary file will be in the
range of 30-40,000 words.
Hard Disk Installation
The current version of SpellCheck does not support DOS 2+ subdirectories. If
you have a hard disk, you will have to install SpellCheck in one of the
following ways: 1. Install all the files in the root directory of drive C:, or
2. Install all the files in a directory called "SPELL". If you use the second
method, you must move to the SPELL directory before executing the program.
Type "cd c:\spell" or better yet, create a batch file. In either case, the
file being checked must also be present in the same directory as SPELL.EXE and
the dictionary and control files. I am sorry for this limitation. Provisions
have been made in the program to support extended pathnames, I am merely
awaiting a newer version of my compiler that will support the DOS subdirectory
structure.
RAM Disk Usage
If a ramdisk of 360K capacity is available on your system, I suggest copying
the dictionary file (MAIN.DCT) into the ram disk. This will greatly speed up
the program since most of the processing time is spent reading the dictionary.
If you install MAIN.DCT on the "root" directory of your ramdisk, you need not
copy any of the other files onto the ramdisk; instead, use the "Set Pathnames"
option of SpellCheck to tell the program where the dictionary is (see below
for further information).
Running The Program
To run the program, enter the command SPELL. Remember that SPELL.CTL and
MAIN.DCT must initially reside in the same directory, which must be the
"current" directory when SPELL is executed. If desired, you can relocate the
dictionary or the SPELL program itself by using the "Set Pathnames" option, or
by creating a batch file to control execution.
Menus and Editing
All operations are controlled by menus. To select an option from a menu, just
press the key corresponding to the option. Or, highlight the option (press the
spacebar, backspace, or arrow keys to move the inverse bar) and press Return.
When typing in a word or a filename, the standard IBM editing keys are
enabled. You can press the left arrow, right arrow, ins and del keys to edit
your input.
Setting Pathnames
When SpellCheck boots up, it looks for a file named "SPELL.CTL" and reads
three lines from this file. The three strings read are the name of the main
dictionary file, the name of the alternate dictionary (if used), and the name
of the lineprinter device or filespec. If you rename the main dictionary or
reside it on a different disk drive, or create alternate dictionaries, use the
"Set Pathnames" option to change this control information. At the SpellCheck
main menu, type "S". You will then be prompted for the three pieces of
information. For example, if you have a ramdisk set up as drive D:, you could
copy MAIN.DCT to drive D: and enter the main dictionary filespec as
D:MAIN.DCT. This will allow the program to look on drive D: for MAIN.DCT each
time you run it. You can also specify an alternate dictionary, and a printer
device spec (used to print an error report; use PRN to print on the printer,
or type another device or filename to divert the output to another location).
Creating Alternate Dictionaries
To create a new, blank dictionary file, go to the "Dictionary Operations" menu
and select option C, "Create New Dictionary". Type the name of the new file,
and it will be created. To actually use the alternate dictionary, however, you
must set the pathname to it as described above. Alternate dictionaries are
used in conjunction with the main dictionary when proofreading files. You can
use the alternate dictionary to store words which appear frequently in your
documents but are not english words, such as proper names, slang, and
technical terms. You may wish to create a temporary alt dictionary, perhaps on
ramdisk, just for use while checking one particular file or group of files.
Maintaining Dictionaries
Main menu options D and A allow you to maintain the "main" and "alternate"
dictionary files. The dictionary operations menus give you options to search,
add, and delete individual words from the dictionaries. In addition, the "Add
Words From File" option will read in an entire text file and add all words
found in the file to the dictionary (if they were not already there). You can
use this option to initialize an empty dictionary using a text or document
file that you know contains no errors. When reading the file, all control or
special characters, numerals, and punctuation (except for the apostrophe) are
ignored. Lowercase is converted to uppercase before adding words to the
dictionary and before searching for words in the dictionary.
Proofreading
The heart of the program is the Proofread command. Type P and enter the name
of the file to be read. If you type the filename incorrectly or the file does
not exits, a message to this effect is shown on the screen, and you can re-
enter the filename. You can also press ESC to abort the function.
Proofreading options are:
Use Alternate Dictionary - If the alternate dictionary is available and you
answer "Y" to this option, it will be used in conjunction with the main
dictionary when searching for words. Pressing "N" will cause only the main
dictionary to be used.
Print Error Report - If "Y" is selected, a report of unknown words is printed
to the printer (or to whatever filename is specified as the printer device).
Pause at Each Error - If selected, the program will stop at each error found
and display the unknown word, line number, the word in context, and a menu of
options. In response, you type one of the following:
A - Add word to dictionary. The word is added to the main dictionary.
T - Add the word to the alternate dictionary. If the alt dictionary is active
(initialized), this option can be used regardless of whether the alt
dictionary is being used to proofread the file.
C - Continue. Confirm the misspelling and continue on.
I - Ignore the error. Specifically, if an error report is being generated, do
not show this word on the report. (But the counter on the screen will
still reflect the error).
Q - Quit. Abort the operation at this point. You can also abort while the
program is actively checking words by pressing the ESC key.
The total number of words checked, errors found, and words added to the
dictionaries is displayed on the screen during proofreading. When completed,
use the error report (if generated) to correct the misspellings.
Exiting
Always exit the program by pressing "X" on the main menu. If you exit
improperly (such as by re-booting) the proper EOF markers will not be written
to the files, and you will have problems later on.
If you have any additional questions, or would like to suggest improvements or
report bugs, please contact me (address and phone number given below).
-------------------------------------------------------------------------------
Shareware Registration
This program is distributed on the "Shareware" system. You may freely copy and
distribute this program, but if you use it PLEASE register. Registration costs
only $22, and entitles you to use all future versions of SpellCheck. Help
fight the high cost of software by supporting your independent shareware
programmer! Send checks to:
Frank LaRosa
46 Twixt Hills Rd.
St. James, NY 11780
If you would like to receive the latest copy of SpellCheck on disk, including
all documentation, dictionaries, etc., include your name and address and an
extra $3 to cover the costs of diskettes and mailing ($25 total). The source
code is also available; just request it when ordering a disk.
You can download copies of SpellCheck (distributed as SPELLXX.ARC, where XX is
the version number) from various bulletin boards around the country. To get
the newest versions or to contact me with comments or suggestions, call my
bbs, The Searchlight, at (516) 724-0971. It's up 24 hours at 300/1200 baud.
** Look for my other Public Domain releases! **
OTH-PC.EXE Super Sonic OTHELLO Game
RPN.ARC Programmable RPN Scientific Calculator
Available on fine Bulletin Board Systems everywhere!
-------------------------------------------------------------------------------